package com.phone.html5;

import com.xt.base.wireless.server.MobileActionUtil;
import com.xt.yncu.tree.service.TreeService;

public class OrgPeopleTreeAction extends Html5Action{
	private static final long serialVersionUID = -7121027207859342134L;

	private TreeService treeService;
	private String preIds;
	private String preNames;
	private String parentIds;
	
	public String next(){
		parentIds = parentIds==null || parentIds.isEmpty() ?"000106":parentIds;
		this.putBaseParam();
		paramMap.put("code", 6);
		this.paramMap.put("funcid", "T001");
		String s = this.getParam("treeorgid");
		s = s==null || s.isEmpty() ?"000106":s;
		this.paramMap.put("treeorgid", s);
		this.paramMap.put("mainfuncid", "d");
		xmlString = this.treeService.queryTreeList(paramMap);
		resultMap = MobileActionUtil.parseRequestXml(xmlString);
		resultString = "orgPeopleTree.jsp";
		return "resultString";
	}

	public TreeService getTreeService() {
		return treeService;
	}

	public void setTreeService(TreeService treeService) {
		this.treeService = treeService;
	}

	public String getPreIds() {
		return preIds;
	}

	public void setPreIds(String preIds) {
		this.preIds = preIds;
	}

	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	public String getPreNames() {
		return preNames;
	}

	public void setPreNames(String preNames) {
		this.preNames = preNames;
	}
}
